import Cookies from 'js-cookie'
const TokenKey="TokenKey"
// 获取token
function getToken(){
    return Cookies.get(TokenKey)
}
// 设置token
function setToken(){
    return Cookies.set(TokenKey,'token')
}
// 删除token
function removeToken(){
    return Cookies.remove(TokenKey)
}

const cookie={
    getToken,
    setToken,
    removeToken,    
}
export default cookie